home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: Re: Help on random number
- Date: 9 Feb 1996 17:57:12 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4fg1to$eob@gail.ripco.com>
- NNTP-Posting-Host: foley.ripco.com
-
- Tan Shu Wei <tsw@shuwei.pl.my>
- in <4f7193$4bi@jaring.my> asks:
-
- >.... Can
- >help me, or even give me a short explanation on how randomize()
- >works?
-
- Although randomize() is not standard, Borland defines it in stdlib.h.
- No explanation is more complete than the macro definition. srand() is
- standard.
-
- #define randomize() srand((unsigned)time(NULL))
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-